package com.qmq.app.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.qmq.app.entity.UserEntity;
import com.qmq.app.entity.UserInfo;
import com.qmq.app.entity.UserPassword;
import com.qmq.app.form.LoginForm;
import com.qmq.app.form.RegisterForm;

/**
 * 用户
 *
 * @author Mark sunlightcs@gmail.com
 */
public interface UserService extends IService<UserEntity> {

    UserEntity queryByMobile(String mobile);

    /**
     * 用户登录
     *
     * @param form 登录表单
     * @return 返回用户ID
     */
    UserEntity login(LoginForm form);

    void reSetPassword(UserPassword password);

    UserEntity register(RegisterForm user);

    UserEntity reSetUserInfo(UserInfo info);

    UserEntity getUserInfo(Long userId);
}
